package one.stand.fallback;

import com.jmp.feign.BannerFeign;
import com.jmp.service.api.admin.dto.*;
import one.stand.model.ResultModel;
import org.springframework.stereotype.Component;

/**
 * @author hujun
 */
@Component
public class BannerFallback implements BannerFeign {
    @Override
    public ResultModel save(BannerSaveDto request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel remove(BannerRemoveDto request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel up(BannerUpDto request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel down(BannerDownDto request) {
        return ResultModel.faultTolerant();
    }

    @Override
    public ResultModel<BannerListVo> list(BannerListDto request) {
        return ResultModel.faultTolerant();
    }
}
